from pymongo import ASCENDING

from ygframe.db.column import Column
from ygframe.mongo_wrapper.mongo_model import AbstractMongoModel

__author__ = 'jing'


class User(AbstractMongoModel):
    id = Column(index=ASCENDING)

    def __init__(
            self,
            id: str = None
    ) -> None:
        object.__init__(self)
        self.id = id
        self.after_init()


if __name__ == '__main__':
    User.regenerate_init_method()
